﻿<UserControl x:Class="SMIL.FileUploadClient.FileUploadUIControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <UserControl.Resources>
        <Storyboard x:Name="sbProgress">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="progressBar" Storyboard.TargetProperty="(RangeBase.Value)">
                <SplineDoubleKeyFrame x:Name="sbProgressFrame" KeyTime="00:00:00.5000000" Value="10"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>

        <Storyboard x:Name="sbProgressDoc">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="bDoc" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame x:Name="sbProgressFrameDoc" KeyTime="00:00:00.5000000" Value="10"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        
    </UserControl.Resources>
    
    <Grid x:Name="LayoutRoot">
        <Canvas Height="50" Width="35" VerticalAlignment="Top" Margin="17,0">
            <Border BorderBrush="Black" BorderThickness="1" x:Name="bDoc" Background="#FFFFE9D3" Height="50" Width="35" Canvas.Left="0" Canvas.Top="0" Opacity="0.1" />
            <ProgressBar x:Name="progressBar" Width="35" Canvas.Left="0" Canvas.Top="52" Height="10" />
        </Canvas>
        <TextBlock x:Name="tbFileName" Text="TextBlock" TextWrapping="Wrap" Margin="9,0,6,-30" Width="auto" Height="16" VerticalAlignment="Bottom" />
    </Grid>
</UserControl>
